package com.medeiros.upmoney.model;

import java.math.BigDecimal;
import java.util.Calendar;

public class LimiteBuilder {

	public static Limite build(Categoria cate, int valor, int dias){
		Calendar date = Calendar.getInstance();
		date.add(Calendar.DAY_OF_YEAR, dias);
		Limite limite = new Limite(cate, date, new BigDecimal(valor));
		limite.setValor(new BigDecimal(valor));
		limite.setCategoria(cate);
		return limite;
	}
}
